listview: Try to keep the list items in order when scrolling
authorBenjamin Otte <otte@redhat.com>
Fri, 28 Sep 2018 01:33:16 +0000 (03:33 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 30 May 2020 23:26:45 +0000 (19:26 -0400)
commit5b69fd535d1bac96912566dc8c2d2ca3c3f969ed
tree0b12e9a996e18da0f83e66bc3a977383aefa685e
parent7831980c1dd7f17136d0f4a4f6df8a01e603dde0
listview: Try to keep the list items in order when scrolling

Instead of just destroying all items and then recreating them (or even
hide()ing and then show()ing them again (or even even repositioning
them in the widget tree)), just try to reust them in the order they are.

This works surprisingly well when scrolling and most/all widgets
just moved.
gtk/gtklistitemmanager.c
gtk/gtklistitemmanagerprivate.h
gtk/gtklistview.c